package com.ktwlsoft.archivemanage.domain.dao.entity.sms;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * SmsLog
 *
 * @author Name on 2019/5/5 10:20
 * @version 1.0
 */
@Getter
@Setter
public class SmsLog {

    /**主键*/
    private Long id;

    /**用户账号*/
    @ApiModelProperty(value = "用户账号")
    private String accountId;

    /**手机号*/
    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8])|(19[7]))\\d{8}$", message = "手机号码不正确")
    private String mobile;

    /**json文本内容*/
    @ApiModelProperty(value = "json文本内容")
    private String content;

    /**显示文本内容*/
    @ApiModelProperty(value = "显示文本内容")
    private String displayContent;

    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**备注*/
    @ApiModelProperty(value = "备注")
    private String remark;

    /**发送状态:0失败 1成功*/
    @ApiModelProperty(value = "发送状态:0失败 1成功")
    private Integer status;
}